public class Main {
    public static void main(String[] args) {
        // Generate a random double between 0.0 and 1.0
        double randomNumber = Math.random();
        System.out.println("Generated Random Number: " + randomNumber);
        
        // If you want to convert this into an integer within a specific range,
        // for instance from min (inclusive) to max (exclusive)
        int min = 1;
        int max = 10;
        int randomInt = (int)(Math.random() * ((max - min) + 1)) + min;
        System.out.println("Random Integer Between " + min + " and " + max + ": " + randomInt);
    }
}